package com.ldu.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SportDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SportDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andSportDateIsNull() {
            addCriterion("sport_date is null");
            return (Criteria) this;
        }

        public Criteria andSportDateIsNotNull() {
            addCriterion("sport_date is not null");
            return (Criteria) this;
        }

        public Criteria andSportDateEqualTo(Date value) {
            addCriterion("sport_date =", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateNotEqualTo(Date value) {
            addCriterion("sport_date <>", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateGreaterThan(Date value) {
            addCriterion("sport_date >", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateGreaterThanOrEqualTo(Date value) {
            addCriterion("sport_date >=", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateLessThan(Date value) {
            addCriterion("sport_date <", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateLessThanOrEqualTo(Date value) {
            addCriterion("sport_date <=", value, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateIn(List<Date> values) {
            addCriterion("sport_date in", values, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateNotIn(List<Date> values) {
            addCriterion("sport_date not in", values, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateBetween(Date value1, Date value2) {
            addCriterion("sport_date between", value1, value2, "sportDate");
            return (Criteria) this;
        }

        public Criteria andSportDateNotBetween(Date value1, Date value2) {
            addCriterion("sport_date not between", value1, value2, "sportDate");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeIsNull() {
            addCriterion("energy_consume is null");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeIsNotNull() {
            addCriterion("energy_consume is not null");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeEqualTo(String value) {
            addCriterion("energy_consume =", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeNotEqualTo(String value) {
            addCriterion("energy_consume <>", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeGreaterThan(String value) {
            addCriterion("energy_consume >", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeGreaterThanOrEqualTo(String value) {
            addCriterion("energy_consume >=", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeLessThan(String value) {
            addCriterion("energy_consume <", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeLessThanOrEqualTo(String value) {
            addCriterion("energy_consume <=", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeLike(String value) {
            addCriterion("energy_consume like", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeNotLike(String value) {
            addCriterion("energy_consume not like", value, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeIn(List<String> values) {
            addCriterion("energy_consume in", values, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeNotIn(List<String> values) {
            addCriterion("energy_consume not in", values, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeBetween(String value1, String value2) {
            addCriterion("energy_consume between", value1, value2, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andEnergyConsumeNotBetween(String value1, String value2) {
            addCriterion("energy_consume not between", value1, value2, "energyConsume");
            return (Criteria) this;
        }

        public Criteria andDistanceIsNull() {
            addCriterion("distance is null");
            return (Criteria) this;
        }

        public Criteria andDistanceIsNotNull() {
            addCriterion("distance is not null");
            return (Criteria) this;
        }

        public Criteria andDistanceEqualTo(String value) {
            addCriterion("distance =", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceNotEqualTo(String value) {
            addCriterion("distance <>", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceGreaterThan(String value) {
            addCriterion("distance >", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceGreaterThanOrEqualTo(String value) {
            addCriterion("distance >=", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceLessThan(String value) {
            addCriterion("distance <", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceLessThanOrEqualTo(String value) {
            addCriterion("distance <=", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceLike(String value) {
            addCriterion("distance like", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceNotLike(String value) {
            addCriterion("distance not like", value, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceIn(List<String> values) {
            addCriterion("distance in", values, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceNotIn(List<String> values) {
            addCriterion("distance not in", values, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceBetween(String value1, String value2) {
            addCriterion("distance between", value1, value2, "distance");
            return (Criteria) this;
        }

        public Criteria andDistanceNotBetween(String value1, String value2) {
            addCriterion("distance not between", value1, value2, "distance");
            return (Criteria) this;
        }

        public Criteria andHeartRateIsNull() {
            addCriterion("heart_rate is null");
            return (Criteria) this;
        }

        public Criteria andHeartRateIsNotNull() {
            addCriterion("heart_rate is not null");
            return (Criteria) this;
        }

        public Criteria andHeartRateEqualTo(String value) {
            addCriterion("heart_rate =", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotEqualTo(String value) {
            addCriterion("heart_rate <>", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateGreaterThan(String value) {
            addCriterion("heart_rate >", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateGreaterThanOrEqualTo(String value) {
            addCriterion("heart_rate >=", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateLessThan(String value) {
            addCriterion("heart_rate <", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateLessThanOrEqualTo(String value) {
            addCriterion("heart_rate <=", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateLike(String value) {
            addCriterion("heart_rate like", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotLike(String value) {
            addCriterion("heart_rate not like", value, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateIn(List<String> values) {
            addCriterion("heart_rate in", values, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotIn(List<String> values) {
            addCriterion("heart_rate not in", values, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateBetween(String value1, String value2) {
            addCriterion("heart_rate between", value1, value2, "heartRate");
            return (Criteria) this;
        }

        public Criteria andHeartRateNotBetween(String value1, String value2) {
            addCriterion("heart_rate not between", value1, value2, "heartRate");
            return (Criteria) this;
        }

        public Criteria andSpeedIsNull() {
            addCriterion("speed is null");
            return (Criteria) this;
        }

        public Criteria andSpeedIsNotNull() {
            addCriterion("speed is not null");
            return (Criteria) this;
        }

        public Criteria andSpeedEqualTo(String value) {
            addCriterion("speed =", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotEqualTo(String value) {
            addCriterion("speed <>", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedGreaterThan(String value) {
            addCriterion("speed >", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedGreaterThanOrEqualTo(String value) {
            addCriterion("speed >=", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedLessThan(String value) {
            addCriterion("speed <", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedLessThanOrEqualTo(String value) {
            addCriterion("speed <=", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedLike(String value) {
            addCriterion("speed like", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotLike(String value) {
            addCriterion("speed not like", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedIn(List<String> values) {
            addCriterion("speed in", values, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotIn(List<String> values) {
            addCriterion("speed not in", values, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedBetween(String value1, String value2) {
            addCriterion("speed between", value1, value2, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotBetween(String value1, String value2) {
            addCriterion("speed not between", value1, value2, "speed");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeIsNull() {
            addCriterion("sport_location_type is null");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeIsNotNull() {
            addCriterion("sport_location_type is not null");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeEqualTo(String value) {
            addCriterion("sport_location_type =", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeNotEqualTo(String value) {
            addCriterion("sport_location_type <>", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeGreaterThan(String value) {
            addCriterion("sport_location_type >", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeGreaterThanOrEqualTo(String value) {
            addCriterion("sport_location_type >=", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeLessThan(String value) {
            addCriterion("sport_location_type <", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeLessThanOrEqualTo(String value) {
            addCriterion("sport_location_type <=", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeLike(String value) {
            addCriterion("sport_location_type like", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeNotLike(String value) {
            addCriterion("sport_location_type not like", value, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeIn(List<String> values) {
            addCriterion("sport_location_type in", values, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeNotIn(List<String> values) {
            addCriterion("sport_location_type not in", values, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeBetween(String value1, String value2) {
            addCriterion("sport_location_type between", value1, value2, "sportLocationType");
            return (Criteria) this;
        }

        public Criteria andSportLocationTypeNotBetween(String value1, String value2) {
            addCriterion("sport_location_type not between", value1, value2, "sportLocationType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}